#ifndef _INTERPOL_LIN_FUN_H_
#define _INTERPOL_LIN_FUN_H_

#include <vector>
#include <fstream>
#include <string>

class InterpolLinFun1D {
 public:
  InterpolLinFun1D();
  ~InterpolLinFun1D();
  
  bool	  load(const std::string& fname);
  double  get( double x );
  
 protected:
  // support points
  std::vector< double > xlist;
  std::vector< double > ylist;
  int lastid;
  
};

#endif
